package com.sinothk.fc.storeNotice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sinothk.fc.storeNotice.entity.StoreNoticeEntity;
import com.sinothk.fc.storeNotice.mapper.StoreNoticeMapper;
import com.sinothk.fc.storeNotice.service.IStoreNoticeService;
import org.springframework.stereotype.Service;

/**
 * @Description: 门店公告
 * @Author: Liangyt
 * @Date:   2022-07-15
 * @Version: V1.0
 */
@Service
public class StoreNoticeServiceImpl extends ServiceImpl<StoreNoticeMapper, StoreNoticeEntity> implements IStoreNoticeService {

    @Override
    public void addByTitle(String title) {
        StoreNoticeEntity storeNotice = new StoreNoticeEntity();
        storeNotice.setNoticeTitle(title);
        storeNotice.setNoticeContent(title);
        this.save(storeNotice);
    }
}
